#{extends 'master.html' /}
<div class="page-block">
    #{form @User.setIsAdmin()}
        <input type="hidden" name="id" value="${user.id}" />
        <input type="hidden" name="isAdmin"
            ${[value:'true'].asAttr(!user.isAdmin)}
            ${[value:'false'].asAttr(user.isAdmin)}/>
        <p>
            #{if user.isAdmin}
                &{'User.editForm.removeAdminRole'}
            #{/if}
            #{else}
            &{'User.editForm.addAdminRole'}
            #{/else}
        </p>
        <input type="submit" value="&{'User.editForm.submitButton'}" />
    #{/form}
</div>